<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <!-- <script src="./kvue-2.0.js"></script> -->
    <script src="../../dist/vue.js"></script>
  </head>
  <body>
    <div id="app"></div>
    <script>
      const app = new Vue({
        el: "#app",
        data() {
          return {
            list: [1, 2, 3],
          };
        },
        render(h) {
          return h(
            "div",
            { id: "block" },
            this.list.map((v) =>
              h("span", { attrs: { style: { "margin-left": "10px" } } }, v + "")
            )
          );
        },
      });
      let count = 1;
      setInterval(() => {
        app.list.push(count++);
      }, 1000);
    </script>
  </body>
</html>
